
from selenium.webdriver.common.by import  By

from common.base import BasePage
from pages.loginPage import LoginPage


class MyListPage(BasePage):
    us=(By.LINK_TEXT,"我的账户")
    list=(By.LINK_TEXT,"我的订单")
    def my_list(self,username,password,html):
        dl = LoginPage()
        dl.denglu(self.driver,username,password,html)

        self.getElement(*self.us).click()
        self.getElement(*self.list).click()


if __name__ == '__main__':
    mylist=MyListPage()
    mylist.my_list('uroot','w12345678','http://192.168.202.136/')